package com.pos.uniplugin_all;

import android.util.Log;

import com.pos.uniplugin_all.dhscale.WebSocketUtil;

public class ElectronicScale {
    public void connectES(String ip, String port){
        new Thread(new Runnable() {
            @Override
            public void run() {
                try {
                    WebSocketUtil.main(ip, port);
                }catch (Exception e){
                    Log.d("wdx", "错误： " + e.getMessage());
//                        Looper.prepare();
//                        Toast.makeText(MainActivity.this, "错误： " + e.getMessage(), Toast.LENGTH_SHORT).show();
                }
            }
        }).start();
    }
}
